package cn.edu.jxust.common.domain.model;

import cn.edu.jxust.core.infrastructure.util.Cascadable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;

/**
 * @author QiuKangming
 * @version 1.0
 * @description
 * @since 2020/07/14 10:55
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResourceBuild implements Serializable, Cascadable<ResourceBuild> {

    private Integer id;
    private Integer parentId;
    private String resourceName;
    private String resourceCode;
    private Integer resourceType;
    private String url;
    private String icon;
    private Integer orderNum;
    private String createUsername;
    private String updateUsername;
    private List<ResourceBuild> children;

    @Override
    public Integer getId() {

        return id;

    }

    @Override
    public Integer getParentId(){

        return this.parentId;

    }

    @Override
    public List<ResourceBuild> getChildren() {

        return children;

    }

    @Override
    public void setChildren(List<ResourceBuild> children) {

        this.children = children;

    }
}
